import java.util.Random;
public class work3 {
	public static void main(String[] args) {
		Random ra = new Random();
		int [] arr = new int [] {1,2,3,4,5};
		for(int i=arr.length-1;i>0;i--) {
			int j = ra.nextInt(i);
			int tmp = arr[i];
			arr[i] = arr[j];
			arr[j] = tmp;
 			}
		for(int i : arr) {
			System.out.println(i);
		}
		
	}
}
